#include "include.h"
#include "gui/helperpainter.h"

#include "compile/debug_memoryleaks"

using namespace gui;


HelperPainter::HelperPainter(GraphicPainter* p)
: painter(p)
{
}


HelperPainter::~HelperPainter()
{
}


void HelperPainter::paint(gui::GridHelper* gridhelper)
{
    if (gridhelper && painter)
    {
        std::vector<Vector>::const_iterator it = gridhelper->getPoints().begin();
        while (it!=gridhelper->getPoints().end())
        {
            Vector point((*it));
            painter->drawGridPoint(point);
            ++it;
        }

        //TODO....
    }
}



void HelperPainter::paint(gui::PivotHelper* pivothelper)
{
    if (pivothelper)
    {
        //TODO....
    }
}


